﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrEFCore.Models
{
	public class Roles
	{
        [Key]
        [DisplayName("编号")]
		public short RolesID { get; set; }
        [DisplayName("角色名称")]
		[Required(ErrorMessage = "请输入角色名称")]
		public string RolesName { get; set; }
        [DisplayName("角色说明")]
		[Required(ErrorMessage = "请输入角色说明")]
		public string RolesInstruction { get; set; }
        [DisplayName("是否可用")]
        public bool RolesIf { get; set; }
    }
}
